import {createStore, combineReducers} from 'redux';
import {counter} from './workBanchStore/reducers';
import {userReducer} from './loginStore/reducers';

const mainReducer = combineReducers({
  //combineReducers将多个 Reducer 进行合并。
  // quanju: counter,
  user: userReducer,
});

const store = createStore(mainReducer);

store.subscribe(() => {
  //获取数据
  console.log('store 更新：', store.getState());
});

export default store;
